﻿<!DCOTYPE  html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>统计代码冲突检测</title>
         <link rel="stylesheet" href="/css/theme/font-awesome.min.css" type="text/css" />
        <link rel="stylesheet" href="/css/theme/bootstrap.min.css" type="text/css" />
        <link rel="stylesheet" href="/javascript/theme/libs/jquery-easyui-1.4/themes/default/easyui.css" type="text/css" />
        <link rel="stylesheet" href="/css/theme/App.css" type="text/css" />
        <link rel="stylesheet" href="/css/theme/custom.css" type="text/css" />
        <script src="/javascript/theme/libs/jquery-1.9.1.min.js"></script>
        <script src="/javascript/theme/libs/jquery-easyui-1.4/jquery.easyui.min.js"></script>
        <script src="/javascript/theme/libs/bootstrap.min.js"></script>
        <script src="/javascript/theme/App.js"></script>
        <script type="text/javascript" src="/javascript/My97DatePicker/WdatePicker.js"></script>
        <script type="text/javascript" src="/javascript/report/FusionCharts.js"></script>
        <script type="text/javascript" src="../javascript/report/Date.js"></script>
        <style type="text/css">
            .alink {
            text-decoration:underline;
            color:#0000CC;
            }
            .alinkClicked {
            color:#0000CC;
            }
            #cates,#locals,#cateClean,#localClean{
            display:none;
            }
        </style>
    </head>
    <body>
        <div id="content" style="OVERFLOW-X:yes;OVERFLOW-Y:auto;">
            <div id="content-container">
                <form action="/Statistics/ConflictDelect" class="form-horizontal" name="searchform" role="form" method="post">
                    <div class="portlet">
                        <div class="portlet-header">
                            <h3>
                                <i class="fa fa-tasks"></i>
                                统计代码标记检测
                            </h3>
                        </div>
                        <!-- /.portlet-header -->
<div class="portlet-content">
 <span onclick="showtag()" style="color:red;">说明(点击查看)</span> 
  </br>
<div class="form-group">
<label class="col-md-2">&nbsp;&nbsp;平  台 : </label>
<div class="col-md-2">
        <input type="radio" name="platform" value="58PC" #if($!{platform}=='58PC') checked #end  checked/>58PC&nbsp;&nbsp;&nbsp;
        <input type="radio" name="platform" value="58M" #if($!{platform}=='58M') checked #end /> 58M &nbsp;&nbsp;&nbsp;
        <input type="radio" name="platform" value="chinahrPC" #if($!{platform}=='chinahrPC') checked #end  />中华英才网PC&nbsp;&nbsp;&nbsp;
        <input type="radio" name="platform" value="chinahrM" #if($!{platform}=='chinahrM') checked #end /> 中华英才网M &nbsp;&nbsp;&nbsp;
</div>
</div>
<div class="form-group" id="selectcont0">
    <label class="col-md-2">&nbsp;&nbsp;pagetype: 
    </label>
    <div class="col-md-2">
    <input type="text" class="form-control" style="width:100px" name="pagetype" id="pagetype" rename="pagetype" value="$!{pagetype}" />
    </div>&nbsp;
    <label class="col-md-2">&nbsp;&nbsp;page: 
    </label>
    <div class="col-md-2">
    <input type="text" class="form-control" style="width:100px" name="page" id="page" rename="page" value="$!{page}" />
    </div>&nbsp;
    <input type="radio" name="selectcontent" value="pagetype0name" #if($!{selectcontent}=='pagetype0name') checked #end  checked />
</div>
<div class="form-group" id="selectcont1">
    <label class="col-md-2">&nbsp;&nbsp;page: 
    </label>
    <div class="col-md-2">
    <input type="text" class="form-control" style="width:100px" name="page1" id="page1" rename="page" value="$!{page1}" />
    </div>&nbsp;
    <label class="col-md-2">&nbsp;&nbsp;pagetype: 
    </label>
    <div class="col-md-2">
    <input type="text" class="form-control" style="width:100px" name="pagetype1" id="pagetype1" rename="pagetype" value="$!{pagetype1}" />
    </div>&nbsp;
    <input type="radio" name="selectcontent" value="pagetype1name" #if($!{selectcontent}=='pagetype1name') checked #end  />
</div>
<div class="form-group" id="selectcont2">
    <label class="col-md-2">&nbsp;&nbsp;点击标记: 
    </label>
    <div class="col-md-2">
    <input type="text" class="form-control" style="width:100px" name="clicktag" id="clicktag" rename="点击标记" value="$!{clicktag}" />
    </div>&nbsp;
    <input type="radio" name="selectcontent" value="clicktagname" #if($!{selectcontent}=='clicktagname') checked #end  />
</div>
<div class="form-group" id="selectcont3">
    <label class="col-md-2">&nbsp;&nbsp;渠道来源: 
    </label>
    <div class="col-md-2">
    <input type="text" class="form-control" style="width:100px" name="source" id="source" rename="渠道来源" value="$!{source}" />
    </div>&nbsp;
    <input type="radio" name="selectcontent" value="sourcename" #if($!{selectcontent}=='sourcename') checked #end  />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" class="btn btn-primary btn-xs" id="tosearch" onclick="Postsearch()" value="查询"  />
</div>

</div>
</div><!--portlet-content-->
</div><!--portlet-->
</form>
 #if($rsList)
<div class="portlet">
    <div class="portlet-header">
        <h3>
            <i class="fa fa-hand-o-up"></i>
            查询结果
        </h3>
    </div>
        <div class="portlet-content">
            <div class="table-responsive">
                <table class="table table-striped table-bordered table-hover" id="wordtable" data-provide="datatable" data-display-rows="20" >
                    <thead>
                        <tr>
                                <th  style="text-align:center;">开始日期</th>
                                #if($!{selectcontent}=='clicktagname')
                                <th  style="text-align:center;">点击标志</th>
                                #end
                                #if($!{selectcontent}=='pagetype1name')
                                <th  style="text-align:center;">page</th>
                                <th  style="text-align:center;">pagetype</th>
                                #end
                                #if($!{selectcontent}=='pagetype0name')
                                <th  style="text-align:center;">pagetype</th>
                                <th  style="text-align:center;">page</th>
                                #end
                                #if($!{selectcontent}=='sourcename')
                                <th  style="text-align:center;">渠道来源</th>
                                #end
                               
                        </tr>
                    </thead>
                    <tbody>
                        #foreach($rs in $rsList)
                            <tr  align="center" >  
                                 <td>$!rs.startdate</td>
                                 #if($!{selectcontent}=='clicktagname')
                                 <td>$!rs.clicktag</td>
                                 #end
                                 #if($!{selectcontent}=='pagetype1name')
                                 <td>$!rs.page</td>
                                 <td>$!rs.pagetype</td>
                                 #end   
                                 #if($!{selectcontent}=='pagetype0name')
                                 <td>$!rs.pagetype</td>
                                 <td>$!rs.page</td>
                                 #end   
                                 #if($!{selectcontent}=='sourcename')
                                 <td>$!rs.source</td>
                                 #end
                            </tr>
                        #end												
                    </tbody>
                </table>
                 <div class="row dt-rb">
                            #parse("/views/default/newpage.vm")
                            #pagenew($pList "/Statistics/ConflictDelect?#page#&$paramurl")
                </div>
            </div>
        </div>
</div>
 #end
</div>
</div>
<script >
    function showtag(){
       alert('冲突检测查询工具说用说明：\n     可查询已经存在的统计代码，目前支持点击标记，导流来源名称，pagetype和page的查询。\n注意事项（使用说明）：\n     查询的起始时间，是指程序发现该标记的时间。\n     查询的更新时间，是指程序发现该标记的最近时间，并不意味着标记下线。\n     所有查询的字符中，有空格、制表符、回车、换行符，都被替换成 {@58@}。\n友情提示：\n     埋码时，请使用字母、数字、下划线的组合，且长度小于80字符。\n     如果查询pagetype，page的组合已经存在，请不要使用该组合。');
    }
    function textclear(){
        document.getElementById('URLname').value="";
    }

    function Postsearch(){
        var chkObjs = document.getElementsByName("selectcontent");
        var key=0;
        for(var i=0;i<chkObjs.length;i++)
        {
           if(chkObjs[i].checked)
           {
            key=i;
            break;
           }
        }
        if($('#selectcont'+key).find('input:text')[0].value=="")
        {
            var selname=$('#selectcont'+key).find('input:text')[0].name;
            alert("请输入"+$('#'+selname).attr('rename'));
            return false;
        }else{
            searchform.submit();
        }
        /*$.each($('#selectcont'+key).find('input:text'), function() {
             console.log(this);
             console.log(this.value);
             if(this.value=="")
             {
                alert("请输入"+$(this).attr('rename'));
                return false;
             }
        });*/
    }
</script>
</body>
</html>
